package com.youkeyi.ddy.cloud.common.api.application.system.menu;

import com.youkeyi.ddy.cloud.common.api.application.system.menu.dto.SystemCorpMenuListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.menu.dto.SystemMenuDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.menu.dto.SystemMenuListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.menu.dto.SystemMenuTreeCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.menu.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemMenuCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/menu/fallback")
public class SystemMenuCloudServiceFallback implements SystemMenuCloudService {

    @Override
    public SystemMenuListCloudDto list(SystemMenuListCloudParam param) {
        return new SystemMenuListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemMenuDetailCloudDto detail(String menuPrimaryKey) {
        return new SystemMenuDetailCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemMenuTreeCloudDto tree(SystemMenuTreeCloudParam param) {
        return new SystemMenuTreeCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemMenuCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(SystemMenuUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemMenuDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }


    @Override
    public SystemCorpMenuListCloudDto corpList(SystemCorpMenuListCloudParam param) {
        return new SystemCorpMenuListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent corpUpdate(SystemCorpMenuUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
